<?php
$DECKROOT = getcwd();

require('./config/config.php');
include $DECKROOT . '/classes/database/'.$dbType.".php";


# LOAD XML FILE
$Stacklist = new pmtData($dbHost,$dbUser,$dbPass,$dbName);
if($Stacklist->getStackList() != null)
{
	$XML=$Stacklist->getStackList();
}

#PRINT
echo $XML;


$Stack = new pmtData($dbHost,$dbUser,$dbPass,$dbName,'3');
$stackID = 1;
if($Stack->getStack($stackID) != null)
{
	$XML=$Stack->getStack($stackID);
}

#PRINT
echo $XML;
?>